
<div class="content margin_top_foot">
    <header class="header fixed_top bg_mx_green">
        <div class="back_text" onclick="location.href.go(-1)"><div class="arrow_left"></div>返回</div>首页
        <div class="header_icon">
            <span class="iconfont icon-home"></span>
        </div>
    </header>
    <div class="margin_b_10 relative">
        <img src="/static/images/user_bg.jpg" alt="">
        <div class="flex">
            <div class="user_info v_center arrow_right" onclick="location.href='<{url route='person/user-info'}>'">
                <div class="width_70 border_white circle" style="border-width:3px">
                    <img class="circle" src="<{$user['avatar']}>" alt="">
                </div>
                <div class="left_70 padding_h_15 white text_ellipsis font_16"><{$user['nickname']}></div>
            </div>
            <!-- <div class="flex user_data white font_16 padding_h_15 padding_v_5 text_center">
                <div class="flex_1">0.01<br><span class="grey">余额(元)</span></div>
                <div class="flex_1">0.01<br><span class="grey">领养收益(元)</span></div>
            </div> -->
        </div>
    </div>
    <div class="user_navs grid_3 bg_white"></div>
    <footer class="foot_tab fixed_bottom mx_green font_16"></footer>
</div>
<script type="text/template" charset="utf-8" id='nav_template'>
    {{for(var i=0;i<it.length;i++){}}
    <div class="grid_one padding_15 lineheight_2" onclick="location.href='{{=it[i].link}}'">
        <div class="iconfont icon-{{=it[i].icon}} font_24 {{=it[i].color}}"></div>
        <div>{{=it[i].name}}</div>
    </div>
    {{}}}
</script>
<script>
    // 栏目模版
    var navs = <{$menus}>;
    var evalnav = doT.template($("#nav_template").text());
    loaddata(".user_navs",evalnav,navs);console.log(navs)
    // 头部、底部菜单
    loadheadbar("个人中心",1)
    loadbfootbar()
</script>
